
class FileInfo(object):
    """
    : 每个文件都有其属性以及对文件数据的操作：变量名（文件名）、路径等
    : 操作类型：删除、增加行列
    """
    def __init__(self):
        self.name = None
        self.path = None
        self.rows_count = None
        self.cols_count = None
        self.type = None
        self.have_head = False
        self.head_label = None
        self.data = None
        self.from_workspace = False         # 是否来自工作区
        self.display_number = -1            # 显示在tab中的索引值

    def add_row(self, index):
        pass

    def add_col(self, index):
        pass

    def del_row(self, index):
        pass

    def del_col(self, index):
        pass


